<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./bootstrap安装包/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.cn/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.cn/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    <title>Document</title>
    <style>
        [class='col'] {
            border: 1px solid black;
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 在大屏幕下的排布，刚好分为12份 -->
        <div class="row" style="background-color: pink;">
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 ">1</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 ">2</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 ">3</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 ">4</div>
        </div>
        <!-- 未分到12份 -->
        <div class="row">
            <div class="col-lg-3">1</div>
            <div class="col-lg-3">2</div>
            <div class="col-lg-3">3</div>
            <div class="col-lg-1">4</div>
        </div>
        <!-- 超过12份 -->
        <div class="row">
            <div class="col-lg-3">1</div>
            <div class="col-lg-3">2</div>
            <div class="col-lg-3">3</div>
            <div class="col-lg-4">4</div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-lg-6" style="background-color: pink;">
                <div class="row">
                    <div class="col-lg-6">a</div>
                    <div class="col-lg-6">b</div>
                </div>
            </div>
            <div class="col-lg-6" style="background-color: blue;"></div>
        </div>
        <!-- 列偏移 -->
        <div class="row">
            <div class="col-lg-3">q左侧</div>
            <div class="col-lg-3 col-lg-offset-6">p右侧</div>
        </div>
        <!-- 列排序 -->
        <div class="row">
            <div class="col-lg-9  col-lg-push-3">q左侧</div>
            <div class="col-lg-3 col-lg-pull-9">p右侧</div>
        </div>
    </div>
</body>

</html>